!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@wix/image-kit"),require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[LoginSocialBar]",["imageClientApi","react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[LoginSocialBar]"]=t(require("@wix/image-kit"),require("react")):e["rb_wixui.thunderbolt[LoginSocialBar]"]=t(e.__imageClientApi__,e.React)}("undefined"!=typeof self?self:this,(function(e,t){return function(){var n={22249:function(e,t,n){var a=n(82016);e.exports=a.create("Avatarbase3624378634",{classes:{root:"Avatarbase3624378634__root",content:"Avatarbase3624378634__content",anonymous:"Avatarbase3624378634__anonymous",image:"Avatarbase3624378634__image",loadingWrapper:"Avatarbase3624378634__loadingWrapper"},vars:{},stVars:{},keyframes:{},layers:{}},"",-1,e.id)},68518:function(e,t,n){var a=n(82016);e.exports=a.create("Avatar816531467",{classes:{root:"Avatar816531467__root"},vars:{},stVars:{},keyframes:{},layers:{}},"",-1,e.id)},82016:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderable=t.create=void 0;t.create=function(e,t,n,a,r,i){const o={namespace:e,classes:t.classes,keyframes:t.keyframes,layers:t.layers,vars:t.vars,stVars:t.stVars,cssStates:function(e){const t=[];for(const n in e){const a=s(n,e[n]);a&&t.push(a)}return t.join(" ")},style:l,st:l,$id:r,$depth:a,$css:n};function s(t,n){if(!1===n||null==n||n!=n)return"";if(!0===n)return function(t){return`${e}--${t}`}(t);return function(t,n){return`${e}---${t}-${n.length}-${n.replace(/\s/gm,"_")}`}(t,n.toString())}function l(){const e=[];for(let t=0;tObject.entries(e).reduce(((e,[t,n])=>(t.includes("data-")&&(e[t]=n),e)),{});let c=function(e){return e[e.Initials=0]="Initials",e[e.Image=1]="Image",e[e.Vector=2]="Vector",e}({}),u=function(e){return e.AvatarOnly="avatarOnly",e.AvatarAndText="avatarAndText",e.TextOnly="textOnly",e.MemberInitials="memberInitials",e}({}),d=function(e){return e.None="none",e.Line="line",e.Full="full",e}({}),m=function(e){return e.Left="left",e.Center="center",e.Right="right",e}({});var p="W1r_9e";const g={enter:13,space:32,end:35,home:36,escape:27,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,tab:9,delete:46,a:65,z:90,pageUp:33,pageDown:34};function f(e){return t=>{t.keyCode===e&&(t.preventDefault(),t.stopPropagation(),t.currentTarget.click())}}const h=f(g.space),v=f(g.enter),b=e=>{v(e),h(e)},y=(f(g.escape),"ltr"),E="rtl",w="Members bar",I="link",x="choose",L="logout";var k="Q94nZ1",C="iN8Moe",O="WgIltU",S="jqr5zx";function M(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);rn.createElement("svg",Object.assign({id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),n.createElement("defs",null,n.createElement("style",null,".cls-anonymous-icon{fill: inherit}")),n.createElement("ellipse",{className:"cls-anonymous-icon",cx:103.7,cy:74.3,rx:38.3,ry:38.7}),n.createElement("path",{style:{fill:"none"},d:"M0 0h200v200H0z"}),n.createElement("path",{className:"cls-anonymous-icon",d:"M188.4 200c-7.4-43.6-44.2-76.8-88.4-76.8S19 156.4 11.6 200Z"})),N=1;var P,R;!function(e){e.xLarge="xLarge",e.large="large",e.medium="medium",e.small="small",e.xSmall="xSmall",e.xxSmall="xxSmall"}(P||(P={})),function(e){e[e.READY=0]="READY",e[e.LOADING=1]="LOADING",e[e.FAILURE=2]="FAILURE"}(R||(R={}));var D=r(96114),B=r.n(D),_=r(42662);const j={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},z=(e,t)=>(Array.isArray(t)?t:[t]).reduce(((t,n)=>{const a=e[n];return void 0!==a?Object.assign(t,{[n]:a}):t}),{}),H=(e,t)=>e&&t&&Object.keys(t).forEach((n=>{const a=t[n];void 0!==a?e.style[n]=((e,t)=>"number"!=typeof t||j[e]?t:`${t}px`)(n,a):e.style.removeProperty(n)})),U=(e,t,n,a)=>{if(!e.targetWidth||!e.targetHeight||!e.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:r}=e,i=e.displayMode||_.fittingTypes.SCALE_TO_FILL,o=Object.assign(z(r,["upscaleMethod","hasAnimation"]),z(e,"filters"),e.quality||r.quality,a&&{allowWEBPTransform:a}),s=e.imageData.devicePixelRatio||t.devicePixelRatio,l=W(s),c=Object.assign(z(r,["width","height","crop","name","focalPoint"]),{id:r.uri}),u={width:e.targetWidth,height:e.targetHeight,htmlTag:n||"img",pixelAspectRatio:l,alignment:e.alignType||_.alignTypes.CENTER},d=(0,_.getData)(i,c,u,o);return d.uri=$(d.uri,t.staticMediaUrl,t.mediaRootUrl),d},$=(e,t,n)=>{if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(e))return e;let a=`${t}/`;return e&&(/^micons\//.test(e)?a=n:"ico"===/[^.]+$/.exec(e)?.[0]&&(a=a.replace("media","ficons"))),a+e},W=e=>{const t=window.location.search.split("&").map((e=>e.split("="))).find((e=>e[0].toLowerCase().includes("devicepixelratio")));return(t?Number(t[1]):null)||e||1},q=e=>e.getAttribute("src"),F=80;var V={measure:function(e,t,n,{containerElm:a,bgEffect:r="none",sourceSets:i},o){const s=n.image,l=n[e],c=(u=o.getScreenHeightOverride?.(),u||document.documentElement.clientHeight||window.innerHeight||0);var u;const d=a?.dataset.mediaHeightOverrideType,m=a&&r&&"none"!==r?a:l,{width:p,height:g}=o.getMediaDimensionsByEffect?.(r,m.offsetWidth,m.offsetHeight,c)||{width:l.offsetWidth,height:l.offsetHeight};if(i&&(t.sourceSetsTargetHeights=function(e,t,n,a,r){const i={};return e.forEach((({mediaQuery:e,scrollEffect:o})=>{i[e]=r.getMediaDimensionsByEffect(o,t,n,a).height})),i}(i,m.offsetWidth,m.offsetHeight,c,o)),!s)return;const f=q(s);t.width=p,t.height=function(e,t){return"fixed"===t||"viewport"===t?document.documentElement.clientHeight+F:e}(g,d),t.screenHeight=c,t.imgSrc=f,t.boundingRect=l.getBoundingClientRect(),t.mediaHeightOverrideType=d},patch:function(e,t,n,a,r,i,o,s,l){if(!Object.keys(t).length)return;const{imageData:c}=a,u=n[e],d=n.image;l&&(c.devicePixelRatio=1);const m=a.targetScale||1,p={...a,...!a.skipMeasure&&{targetWidth:(t.width||0)*m,targetHeight:(t.height||0)*m},displayMode:c.displayMode},g=r.isExperimentOpen?.("specs.thunderbolt.allowWEBPTransformation")&&((e,t)=>{const n=!!(q(e)||"").match(/.webp\/v1\//);return(0,_.isWEBP)(t)&&n})(d,c.uri),f=U(p,i,"img",g),h=f?.css?.img||{},v=function(e,t,n,a,r){const i=function(e,t=1){return 1!==t?{...e,width:"100%",height:"100%"}:e}(t,a);if(r&&(delete i.height,i.width="100%"),!e)return i;const o={...i};return"fill"===n?(o.position="absolute",o.top="0"):"fit"===n&&(o.height="100%"),"fixed"===e&&(o["will-change"]="transform"),o.objectPosition&&(o.objectPosition=t.objectPosition.replace(/(center|bottom)$/,"top")),o}(t.mediaHeightOverrideType,h,c.displayMode,m,s);H(d,v);const b=f?.uri||"";u.setAttribute("data-src",b);const y=function(e,t,n){const{sourceSets:a}=t;if(!a||!a.length)return;const r={};return a.forEach((({mediaQuery:a,crop:i,focalPoint:o})=>{const s={...t,targetHeight:(e.sourceSetsTargetHeights||{})[a]||0,imageData:{...t.imageData,crop:i,focalPoint:o}},l=U(s,n,"img");r[a]=l.uri||""})),r}(t,p,i);u.setAttribute("data-has-ssr-src",""),a.isLQIP&&a.lqipTransition&&!("transitioned"in u.dataset)&&(u.dataset.transitioned="",d.complete?d.onload=function(){d.dataset.loadDone=""}:d.onload=function(){d.complete?d.dataset.loadDone="":d.onload=function(){d.dataset.loadDone=""}}),o&&(d.setAttribute("fetchpriority","high"),d.currentSrc!==b&&d.setAttribute("src",b),d.srcset&&d.srcset!==b&&d.setAttribute("srcset",b),n.picture&&p.sourceSets&&Array.from(n.picture.querySelectorAll("source")).forEach((e=>{const t=e.media||"",n=y?y[t]:"";e.srcset!==n&&e.setAttribute("srcset",n)})))}};const G={parallax:"ImageParallax",fixed:"ImageReveal"};var Y=function(e,t,n){return class extends n.HTMLElement{constructor(){super(),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(e,t){t&&this.reLayout()}connectedCallback(){t.disableImagesLazyLoading?this.reLayout():this.observeIntersect()}disconnectedCallback(){this.unobserveResize(),this.unobserveIntersect(),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const a={},r={},i=this.getAttribute("id"),o=JSON.parse(this.dataset.imageInfo||""),s="true"===this.dataset.isResponsive,{bgEffectName:l}=this.dataset,{scrollEffect:c}=o.imageData,{sourceSets:u}=o,d=l||G[c];u&&u.length&&u.forEach((e=>{e.scrollEffect&&(e.scrollEffect=G[e.scrollEffect])})),a[i]=this,o.containerId&&(a[o.containerId]=n.document.getElementById(`${o.containerId}`));const m=o.containerId?a[o.containerId]:void 0;if(a.image=this.querySelector("img"),a.picture=this.querySelector("picture"),!a.image){const e=this;return void this.observeChildren(e)}this.unobserveChildren(),this.observeChildren(this),e.mutationService.measure((()=>{V.measure(i,r,a,{containerElm:m,bgEffect:d,sourceSets:u},e)}));const p=n=>{e.mutationService.mutate((()=>{V.patch(i,r,a,o,e,t,n,s,d)}))};!q(a.image)||this.dataset.hasSsrSrc?p(!0):this.debounceImageLoad(p)}debounceImageLoad(e){clearTimeout(this.timeoutId),this.timeoutId=n.setTimeout((()=>{e(!0)}),250),e(!1)}observeResize(){e.resizeService?.observe(this)}unobserveResize(){e.resizeService?.unobserve(this)}observeIntersect(){e.intersectionService?.observe(this)}unobserveIntersect(){e.intersectionService?.unobserve(this)}observeChildren(e){this.childListObserver||(this.childListObserver=new n.MutationObserver((()=>{this.reLayout()}))),this.childListObserver.observe(e,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};const Q=()=>/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio,K="https://static.wixstatic.com/media",J="https://static.wixstatic.com";function Z(e={},t=null,n={}){if("undefined"==typeof window)return;const a={staticMediaUrl:K,mediaRootUrl:J,experiments:{},devicePixelRatio:Q(),...n},r=function(e){const t="wow-image";if(void 0===(e=e||window).customElements.get(t)){let n,a;return e.ResizeObserver&&(n=new e.ResizeObserver((e=>e.map((e=>e.target.reLayout()))))),e.IntersectionObserver&&(a=new IntersectionObserver(((e,t)=>e.map((e=>{if(e.isIntersecting){const t=e.target;t.unobserveIntersect(),t.observeResize()}return e}))),{rootMargin:"50% 0px"})),function(r,i){const o=Y({resizeService:n,intersectionService:a,...r},i,e);e.customElements.define(t,o)}}}(t);r&&r({mutationService:B(),...e},a)}var X="HlRz5e";const{STATIC_MEDIA_URL:ee}=_,te=({fittingType:e,src:t,target:n,options:a})=>{const r=_.getPlaceholder(e,t,n,{...a,autoEncode:!0});return r?.uri&&!/^[a-z]+:/.test(r.uri)&&(r.uri=`${ee}${r.uri}`),r},ne=/^[a-z]+:/,ae=e=>{const{id:t,containerId:a,uri:r,alt:i,name:o="",role:s,width:l,height:c,displayMode:u,devicePixelRatio:d,quality:m,alignType:p,bgEffectName:g="",focalPoint:f,upscaleMethod:h,className:v="",crop:b,imageStyles:y={},targetWidth:E,targetHeight:w,targetScale:I,onLoad:x=(()=>{}),onError:L=(()=>{}),shouldUseLQIP:k,containerWidth:C,containerHeight:O,getPlaceholder:S,isInFirstFold:M,placeholderTransition:A,socialAttrs:T,isSEOBot:N,skipMeasure:P,lazyLoadImgExperimentOpen:R,hasAnimation:D,allowWEBPTransform:B}=e,_=n.useRef(null);let j="";const z="blur"===A,H=n.useRef(null);if(!H.current)if(S||k||M||N){const e={upscaleMethod:h,...m||{},shouldLoadHQImage:M,isSEOBot:N,hasAnimation:D,allowWEBPTransform:B};H.current=(S||te)({fittingType:u,src:{id:r,width:l,height:c,crop:b,name:o,focalPoint:f},target:{width:C,height:O,alignment:p,htmlTag:"img"},options:e}),j=!H.current.transformed||M||N?"":"true"}else H.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const U=!N&&(S||k)&&!M&&H.current.transformed,$=n.useMemo((()=>JSON.stringify({containerId:a,...a&&{containerId:a},...p&&{alignType:p},...P&&{skipMeasure:!0},displayMode:u,...C&&{targetWidth:C},...O&&{targetHeight:O},...E&&{targetWidth:E},...w&&{targetHeight:w},...I&&{targetScale:I},isLQIP:U,isSEOBot:N,lqipTransition:A,imageData:{width:l,height:c,uri:r,name:o,displayMode:u,hasAnimation:D,...m&&{quality:m},...d&&{devicePixelRatio:d},...f&&{focalPoint:f},...b&&{crop:b},...h&&{upscaleMethod:h}}})),[a,p,P,u,O,C,E,w,I,U,N,A,l,c,r,o,m,d,f,b,h,D]),W=H.current,q=W?.uri,F=W?.srcset,V=W.css?.img,G=`${X} ${v}`;n.useEffect((()=>{const e=_.current;x&&e?.currentSrc&&e?.complete&&x({target:_.current})}),[]);const Y=W&&!W?.transformed?`max(${l}px, 100%)`:E?`${E}px`:null;return n.createElement("wow-image",{id:t,class:G,"data-image-info":$,"data-bg-effect-name":g,"data-has-ssr-src":j,"data-animate-blur":!N&&U&&z?"":void 0,style:Y?{"--wix-img-max-width":Y}:{}},n.createElement("img",{src:q,ref:_,alt:i||"",role:s,style:{...V,...y},onLoad:x,onError:L,...C&&{width:C},...O&&{height:O},...T,...M?{srcSet:F?.dpr?.map((e=>ne.test(e)?e:`${ee}${e}`)).join(", "),fetchpriority:"high"}:R?{loading:"lazy"}:{}}))},re={initials:"initials",plain:"plain"};function ie(e){var{name:t,src:a,onLoad:r,className:i,lettersLimit:o=1,textType:s=re.initials}=e,l=M(e,["name","src","onLoad","className","lettersLimit","textType"]);const c=n.useRef(a),[u,d]=n.useState("undefined"==typeof window?R.READY:R.LOADING),m=u===R.READY,p=e=>{d(R.READY),r&&r(e)},g=()=>{d(R.FAILURE)};const{Component:f,type:h}=function(){const e=u===R.FAILURE,r=c.current!==a;return a&&(!e||r)?(r&&(c.current=a,e&&d(R.LOADING)),{Component:n.createElement(oe,{lettersLimit:o,name:t,onImgLoadError:g,onLoad:p,imageLoaded:m,src:a,textType:s}),type:"image"}):t?{Component:n.createElement(se,{name:t,lettersLimit:o,textType:s}),type:"text"}:{Component:n.createElement(le,null),type:"placeholder"}}();return n.createElement("div",{"data-content-type":h,"data-img-loaded":m,"data-hook":l["data-hook"],title:t,"aria-label":t,className:(0,A.st)(A.classes.root,i)},f)}function oe({src:e,name:t,lettersLimit:a,textType:r,onImgLoadError:i,onLoad:o,imageLoaded:s}){const l=function(e){if(e){const t=/static\.wixstatic\.com\/media\/([\w\d~\.\%]*)/,n=e.match(t);return n&&n[1]}return null}(e)||e;return n.useEffect((()=>{Z()}),[]),n.createElement(n.Fragment,null,!s&&n.createElement("div",{className:A.classes.loadingWrapper},t?n.createElement(se,{name:t,lettersLimit:a,textType:r}):n.createElement(le,null)),n.createElement(ae,{height:void 0,width:void 0,className:(0,A.st)(A.classes.image,A.classes.content),alt:t,uri:l,name:l,onLoad:o,onError:i,displayMode:"fill"}))}function se({name:e,lettersLimit:t=1,textType:a=re.initials}){return n.createElement("div",{className:A.classes.content,"data-hook":"text-container"},a===re.initials?function(e,t=N){if(!e)return"";(t<1||t>2)&&(t=N);let n=e.split(" ").map((e=>e[0]));return 1===t&&n.length>1&&(n=[n[0]]),2===t&&n.length>2&&(n=[n[0],n[n.length-1]]),n.join("").toUpperCase()}(e,t):e)}function le(){return n.createElement(T,{className:(0,A.st)(A.classes.content,A.classes.anonymous)})}var ce=r(68518);class ue extends n.Component{render(){const e=this.props,{className:t,size:a}=e,r=M(e,["className","size"]);return n.createElement(ie,Object.assign({},r,{className:(0,ce.st)(ce.classes.root,{size:a},t)}))}}ue.displayName="Avatar",ue.defaultProps={size:P.medium};const de=new RegExp("<%= compId %>","g"),me=(e,t)=>e.replace(de,t),pe=(...e)=>e.map((e=>e?`wixui-${e}`:"")).join(" "),ge="",fe=e=>e===ge,he={root:"linkElement"},ve=(e,a)=>{const{href:r,role:i,target:o,rel:s,className:c="",children:u,linkPopupId:d,anchorDataId:m,anchorCompId:p,tabIndex:g,dataTestId:f=he.root,title:y,onClick:E,onDoubleClick:w,onMouseEnter:I,onMouseLeave:x,onFocusCapture:L,onBlurCapture:k,"aria-live":C,"aria-disabled":O,"aria-label":S,"aria-labelledby":M,"aria-pressed":A,"aria-expanded":T,"aria-describedby":N,"aria-haspopup":P}=e,R=void 0!==e.activateByKey?e.activateByKey:(e=>e?"SpaceOrEnter":"Space")(d);let D;switch(R){case"Enter":D=v;break;case"Space":D=h;break;case"SpaceOrEnter":D=b;break;default:D=void 0}return void 0!==r?n.createElement("a",t()({},l(e),{"data-testid":f,"data-popupid":d,"data-anchor":m,"data-anchor-comp-id":p,href:r||void 0,target:o,role:d?"button":i,rel:s,className:c,onKeyDown:D,"aria-live":C,"aria-disabled":O,"aria-label":S,"aria-labelledby":M,"aria-pressed":A,"aria-expanded":T,"aria-haspopup":P,"aria-describedby":N,title:y,onClick:E,onMouseEnter:I,onMouseLeave:x,onDoubleClick:w,onFocusCapture:L,onBlurCapture:k,ref:a,tabIndex:d?0:g}),u):n.createElement("div",t()({},l(e),{"data-testid":f,className:c,tabIndex:g,"aria-label":S,"aria-labelledby":M,"aria-haspopup":P,"aria-disabled":O,"aria-expanded":T,title:y,role:i,onClick:E,onDoubleClick:w,onMouseEnter:I,onMouseLeave:x,ref:a}),u)};var be=n.forwardRef(ve);var ye={root:"vector-image"},Ee="u9k3ts",we="WQ4fSJ",Ie="aizuI7",xe="TcoJIb",Le="elfY4_",ke="R8rhQA";var Ce=e=>{const{id:a,svgContent:r,shouldScaleStroke:i,withShadow:o,withStroke:c,link:u,ariaLabel:d,ariaExpanded:m,ariaAttributes:p,className:g="",customClassNames:f=[],containerClass:h="",onClick:v,onDblClick:b,onMouseEnter:y,onMouseLeave:E,hasPlatformClickHandler:w,onKeyDown:I,toggle:x,reportBiOnClick:L,tag:k="div"}=e,C=w||v,O=!(!(S=u)||0===Object.keys(S).length&&S.constructor===Object);var S;const M=s(Ie,{[xe]:!i,[Le]:o,[ke]:c,[we]:C},g),A=n.useRef(null);n.useEffect((()=>{let e;const t=A.current;return x&&(e=()=>x(!1),null==t||t.addEventListener("click",e)),()=>{e&&(null==t||t.removeEventListener("click",e))}}),[A,x]);const T=n.useMemo((()=>{if(!r)return r;const e=((e,t)=>{const n={},a=e.replace(/\sid="([^"<]+)"/g,((e,a)=>{const r=a.endsWith(t)?a:`${a}_${t}`;return n[a]=r,` id="${r}"`}));return Object.keys(n).reduce(((e,a)=>e.replace(new RegExp(`(${a})(?!_${t})`,"g"),n[a])),a)})(r,a),t=null!=p&&p.label?((e,t)=>{let n=e;const a=/aria-label="[^"]*"/;return n=e.match(a)?e.replace(a,`aria-label="${t}"`):e.replace(/(]*)>/,`$1 aria-label="${t}">`),n})(e,null==p?void 0:p.label):e;return me(t,a)}),[a,r,null==p?void 0:p.label]),N=fe(T)&&"undefined"==typeof window?null:n.createElement("div",{"data-testid":"svgRoot-"+a,className:M,dangerouslySetInnerHTML:{__html:T}}),P=(({reportBiOnClick:e,onClick:t})=>(0,n.useCallback)((n=>{e?.(n),t?.(n)}),[e,t]))({onClick:v,reportBiOnClick:L});return n.createElement(k,t()({id:a},l(e),((e={})=>{const t=e.tabIndex??e.tabindex??void 0;return void 0!==t?{tabIndex:Number(t)}:{}})(e.a11y),{className:s(h,g,pe(ye.root,...f)),onClick:C||O?P:void 0,onDoubleClick:b,onMouseEnter:y,onMouseLeave:E,onKeyDown:I,ref:A,"aria-expanded":m}),O?n.createElement(be,t()({className:Ee,"aria-label":d},u),N):N)};var Oe=e=>n.createElement(Ce,t()({},e,{tag:"div"})),Se=ae;const Me=e=>{let{state:t,url:n,defaultAvatarSvgContent:r,id:i,size:o,name:s,className:l}=e;return t===c.Initials?a().createElement(ue,{className:l,name:s}):t===c.Image&&n?a().createElement(Se,{id:"customAvatar-"+i,containerId:i,width:o,height:o,displayMode:"fill",uri:n,name:"",alt:"",className:l}):a().createElement(Oe,{id:"defaultAvatar-"+i,className:l,svgContent:r,shouldScaleStroke:!1,withShadow:!1})};var Ae=e=>{let{id:t,isLoggedIn:n,avatarUri:r,iconSize:i,defaultAvatarSvgContent:o,userName:l,displayMode:d}=e;const m=d===u.MemberInitials&&n,p=r&&n?c.Image:c.Vector,g=m&&n?c.Initials:p,f=g===c.Vector;return a().createElement("div",{className:s(k,{[C]:!f})},a().createElement(Me,{defaultAvatarSvgContent:o,size:i,name:l,id:t,url:r,state:g,className:s({[O]:m,[S]:f})}))},Te=function(e){return e.Hover="hover",e.MenuClick="menu_click",e.ItemClick="item_click",e}(Te||{});const Ne="members-app-uou",Pe=e=>({src:69,evid:866,component:"login-bar",...e});var Re="EdL5Gv",De="iIyiV2",Be="qdBK0D",_e="ScMAzD",je="sj_soU",ze="sFDrnj",He="ZWH5rY",Ue="JRRppY",$e="G7qhtb",We="tRc98P",qe="Yevi1w",Fe="aXkCL3";const Ve=e=>Array.from(e.querySelectorAll("[tabindex],[href]")),Ge=(e,r)=>{let{ariaLabel:i,menuItems:o,translations:l,direction:c,currentPrimaryPageHref:u,open:d,onLogout:p,onClose:f,menuItemsAlignment:h,reportBi:b,reportBiOnMenuItemClick:w}=e;const x=(0,n.useRef)(null),L=s(Re,{[De]:d,[Ue]:c===E,[He]:c===y,[$e]:h===m.Left,[Fe]:h===m.Center,[qe]:h===m.Right});(0,n.useImperativeHandle)(r,(()=>({focusFirstMenuItem:()=>{if(!x.current)return;const[e]=Ve(x.current);e&&e.focus()}})));return a().createElement("nav",{ref:x,className:L,"aria-label":i,"aria-live":"polite","data-testid":"custom-menu",onKeyDown:e=>{const{keyCode:t}=e,{escape:n,arrowDown:a,arrowUp:r,tab:i,enter:o}=g,s=[a,r,i];if(t===n)e.preventDefault(),f();else if(t===o){e.preventDefault();e.target.click()}else if(s.includes(t)){if(e.preventDefault(),!x.current)return;const n=Ve(x.current),a=e.target,i=n.indexOf(a);if(-1===i)return;let o=i;t===r?(o--,o<0&&(o=n.length-1)):o=(o+1)%n.length,n[o].focus()}},onClick:f},a().createElement("ul",{className:We},o.map(((e,n)=>a().createElement("li",{key:n},a().createElement(be,t()({onClick:()=>(e=>{w(e),b(Pe({action:Te.ItemClick,pageName:e.label}),{endpoint:Ne})})(e)},e.link,{dataTestId:I,className:s(_e,{[Be]:!!e.link.href&&e.link.href===u})}),a().createElement("span",{className:je},e.label),"number"==typeof e.displayCount&&a().createElement("span",{className:ze},"(",e.displayCount,")"))))),!!o.length&&a().createElement("li",{role:"separator"},a().createElement("hr",null)),a().createElement("li",null,a().createElement("div",{className:_e,tabIndex:0,"data-testid":I,onClick:()=>{w({label:l.logOutText,link:{}}),p()},onKeyDown:v},a().createElement("span",{className:je},l.logOutText)))))};var Ye=(0,n.forwardRef)(Ge),Qe="J2__qI",Ke="klQGNR",Je="tIDsUd",Ze="CNB1mg",Xe="VzaX_Y",et="ISA1LS";const tt=(e,t)=>{if(e)return"number"==typeof t?t+" "+e:e};var nt=e=>{let{containerId:t,iconItems:n,direction:r}=e;const i=s(Qe,{[et]:r===E,[Je]:r===y});return a().createElement("nav",{className:i,"data-testid":"icons"},n.map(((e,n)=>{let{iconSvgContent:r,link:i,label:o,displayCount:l}=e;return a().createElement("div",{key:n,className:s(Ke,{[Ze]:"number"==typeof l})},a().createElement(Oe,{id:t+"-icon",svgContent:r,link:i,ariaLabel:tt(o,l),shouldScaleStroke:!1,withShadow:!1}),"number"==typeof l&&a().createElement("span",{className:Xe,"data-testid":"badge"},(c=l)>=1e3?Math.floor(c/1e3)+"k":c));var c})))},at="p_x9Fi";var rt=e=>{let{ariaLabel:t,menuItems:r,currentPrimaryPageHref:i,onLogout:o,navigateTo:s,translations:l,reportBi:c,reportBiOnMenuItemClick:u}=e;const d=(0,n.useMemo)((()=>{const e=r.findIndex((e=>{let{link:t}=e;return t.href&&t.href===i}));return-1!==e?e:x}),[i,r]);return a().createElement("select",{"aria-label":t,className:at,value:d,onChange:e=>{const{value:t}=e.target;if(t===x)return;const n=r[parseInt(t,10)],a=t===L;if(u(a?{label:l.logOutText,link:{}}:n),a)return void o();const{link:i,label:d}=n;s(i),c(Pe({action:Te.ItemClick,pageName:d}),{endpoint:Ne})}},a().createElement("option",{value:x},l.menuOptionValueText),r.map(((e,t)=>a().createElement("option",{key:t,value:t},e.label,"number"==typeof e.displayCount&&" ("+e.displayCount+")"))),a().createElement("option",{value:L},l.logOutText))};const it=()=>a().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26"},a().createElement("g",null,a().createElement("g",null,a().createElement("polygon",{points:"13,20.4 0,7.4 1.8,5.6 13,16.8 24.2,5.6 26,7.4 "})))),ot=()=>a().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26"},a().createElement("g",null,a().createElement("polygon",{points:"13,18.7 26,7.3 0,7.3 "}))),st={[d.Line]:a().createElement(it,null),[d.Full]:a().createElement(ot,null)};var lt=e=>{let{className:t,shape:n}=e;return n===d.None?null:a().createElement("div",{className:t},st[n])},ct="BdbAFL",ut="ijWfut",dt="TD46oG",mt="xzldRa",pt="YRgf21",gt="dI69aw",ft="GVjl6y";var ht=e=>{let{translations:r,isMenuOpen:i,onMenuOpen:o,onMenuClose:l,menuItems:c,onLogout:d,currentPrimaryPageHref:m,id:p,iconItems:f,direction:h,userName:v,showAvatar:b,useNativeMenu:I,showIcons:x,avatarUri:L,iconSize:k,defaultAvatarSvgContent:C,displayMode:O,isLoggedIn:S,navigateTo:M,loggedInText:A,arrowShape:T,menuItemsAlignment:N,reportBi:P,reportBiOnClick:R,reportBiOnMenuItemClick:D}=e;const B=(0,n.useRef)(null),_=(0,n.useRef)(null),j={menuItems:c,translations:r,currentPrimaryPageHref:m,reportBiOnMenuItemClick:D,onLogout:e=>d(e)},z=s(ct,{[pt]:h===E,[dt]:h===y,[ut]:x});return a().createElement("div",{className:z},x&&a().createElement(nt,{containerId:p,iconItems:f,direction:h}),a().createElement("button",{ref:B,className:mt,"aria-label":v+" account menu",onClick:()=>{R(A),!I&&(i?l():o())},onKeyDown:e=>{const{keyCode:t}=e,{enter:n,space:a,escape:r,arrowUp:s,arrowDown:c}=g,u=[n,a,c];i?[n,a,r,s].includes(t)?(e.preventDefault(),l()):t===c&&(e.preventDefault(),_.current&&_.current.focusFirstMenuItem()):u.includes(t)&&(e.preventDefault(),o())}},b&&a().createElement(Ae,{id:p,displayMode:O,iconSize:k,defaultAvatarSvgContent:C,isLoggedIn:S,userName:v,avatarUri:L}),(e=>e===u.TextOnly||e===u.AvatarAndText)(O)&&a().createElement("div",{className:gt},A," ",v),a().createElement(lt,{className:ft,shape:T}),I&&a().createElement(rt,t()({},j,{ariaLabel:w,navigateTo:M,reportBi:P}))),!I&&a().createElement(Ye,t()({},j,{ref:_,ariaLabel:w,open:i,direction:h,onClose:()=>{l(),B.current&&B.current.focus()},menuItemsAlignment:N,reportBi:P})))},vt="jjPduP",bt="YT_9QV";var yt=e=>{let{showAvatar:t,handleLogin:n,isLoggedIn:r,avatarUri:i,iconSize:o,defaultAvatarSvgContent:s,displayMode:l,id:c,userName:u,translations:d,reportBiOnClick:m}=e;const p=a().useCallback((()=>{m(d.loggedOutText),n()}),[d.loggedOutText,n,m]);return a().createElement("button",{className:vt,onClick:p},t&&a().createElement(Ae,{id:c,displayMode:l,iconSize:o,defaultAvatarSvgContent:s,isLoggedIn:r,userName:u,avatarUri:i}),a().createElement("span",{className:bt},d.loggedOutText))};const Et=e=>e===u.AvatarOnly||e===u.AvatarAndText||e===u.MemberInitials;var wt=e=>{const{id:n,className:r,isLoggedIn:i,userName:o,loggedInText:c,logOutText:u,direction:d,useNativeMenu:m,menuItems:g,iconItems:f,currentPrimaryPageHref:h,reportBiOnClick:v,onLogin:b,onLogout:y,navigateTo:E,onMouseEnter:w,onMouseLeave:I,isMenuOpen:x,onMenuOpen:L,onMenuClose:k,reportBiOnMenuItemClick:C,translations:O,displayMode:S,avatarUri:M,iconSize:A,defaultAvatarSvgContent:T,showBellIcon:N,arrowShape:P,menuItemsAlignment:R,reportBi:D}=e,B=N&&!!f.length;return a().createElement("div",t()({id:n},l(e),{className:s(r,p),tabIndex:-1,onBlur:i&&!m?e=>{let{currentTarget:t,relatedTarget:n}=e;n&&t.contains(n)||k()}:void 0,onMouseEnter:e=>{null==w||w(e),i&&!x&&D(Pe({action:Te.Hover}),{endpoint:Ne})},onMouseLeave:I}),i?a().createElement(ht,{avatarUri:M,isLoggedIn:i,userName:o,id:n,displayMode:S,iconSize:A,defaultAvatarSvgContent:T,loggedInText:c,currentPrimaryPageHref:h,direction:d,menuItems:g,iconItems:f,showIcons:B,isMenuOpen:x,onMenuOpen:()=>{L(),i&&D(Pe({action:Te.MenuClick}),{endpoint:Ne})},reportBiOnMenuItemClick:C,logOutText:u,navigateTo:E,onLogout:y,onMenuClose:k,showAvatar:Et(S),useNativeMenu:m,translations:O,arrowShape:P,menuItemsAlignment:R,reportBi:D,reportBiOnClick:v}):a().createElement(yt,{id:n,displayMode:S,iconSize:A,defaultAvatarSvgContent:T,isLoggedIn:i,userName:o,avatarUri:M,showAvatar:Et(S),handleLogin:b,reportBiOnClick:v,translations:O}))};const It=e=>e.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`));var xt;!function(e){e.Text="Text",e.Menu="Menu",e.Image="Image",e.Input="Input",e.Login="Login",e.Button="Button",e.Social="Social",e.Gallery="Gallery",e.Community="Community",e.Decorative="Decorative",e.MenuAndSearch="MenuAndSearch",e.MenuAndAnchor="MenuAndAnchor"}(xt||(xt={}));const Lt=e=>"linkPopupId"in e,kt=(e,t)=>{if(Lt(e))return e.linkPopupId;{const{pagesMap:n,mainPageId:a}=t||{};if(!n)return;const r=new URL(e.href??"");let i=Object.values(n).find((({pageUriSEO:e})=>!!e&&r.pathname?.includes(e)));return i||(i=a?n[a]:void 0),i?.pageId}},Ct=e=>{if(void 0!==e)return null===e?"None":e.type},Ot=(e,t)=>{if(!e?.type)return;const{type:n}=e;switch(n){case"AnchorLink":return e.anchorDataId;case"DocumentLink":return e.docInfo?.name;case"PageLink":const n=kt(e,t);return n&&t?.pagesMap?.[n]?.title;default:return e.href}},St=(e,t,n)=>{const{link:a,value:r,details:i,actionName:o,elementType:s,trackClicksAnalytics:l,pagesMetadata:c,...u}=t;if(!l)return;const d=c&&{...c,pagesMap:window.viewerModel?.siteFeaturesConfigs?.router?.pagesMap},m=((e,t)=>{if(!e?.type)return;const{type:n}=e;switch(n){case"AnchorLink":return(e=>"anchorDataId"in e&&("SCROLL_TO_TOP"===e.anchorDataId||"SCROLL_TO_BOTTOM"===e.anchorDataId))(e)?void 0:{id:e.anchorDataId};case"DocumentLink":return{id:e.docInfo?.docId};case"PageLink":return{id:kt(e,t),isLightbox:Lt(e)};default:return}})(a,d),p=i||m?JSON.stringify({...m,...i}):void 0;e({src:76,evid:1113,...{...u,bl:navigator.language,url:window.location.href,details:p,elementType:s??"Unknown",actionName:o??Ct(a),value:r??Ot(a,d)}},{endpoint:"pa",...n})};var Mt;const At={LoginSocialBar:{component:wt,controller:(Mt=e=>{let{mapperProps:t,controllerUtils:n,stateValues:a}=e;const{updateProps:r}=n,{currentUrl:i,memberDetails:o,logout:s,reportBi:l,navigateTo:c,promptLogin:u}=a,{compId:d,language:m,fullNameCompType:p,trackClicksAnalytics:g,...f}=t;let h={isLoggedIn:!1,userName:"",avatarUri:""};o&&(o.nickname||o.memberName||o.loginEmail)?(h.isLoggedIn=!0,h.userName=o.nickname||o.memberName||o.loginEmail,h.avatarUri=o.imageUrl):t.isLoggedIn&&t.userName&&t.avatarUri&&(h={});const v={language:m,trackClicksAnalytics:g,element_id:d,elementType:p,elementGroup:xt.Community};return{...f,...h,reportBiOnClick:e=>{const{displayMode:t}=f;St(l,{...v,elementTitle:e,details:{displayMode:t}})},reportBiOnMenuItemClick:e=>{const{label:t,link:n,displayCount:a}=e;St(l,{...v,value:n.href,elementTitle:t,details:{displayCount:a}})},onMenuOpen:()=>{r({isMenuOpen:!0})},onMenuClose:()=>{r({isMenuOpen:!1})},reportBi:l,currentPrimaryPageHref:i,navigateTo:c,onLogout:()=>{s()},onLogin:()=>{u()}}},{useComponentProps:(e,t,n)=>{const a=(e=>({...e,updateStyles:t=>{const n=Object.entries(t).reduce(((e,[t,n])=>{return{...e,[(a=t,a.startsWith("--")?t:It(t))]:void 0===n?null:n};var a}),{});e.updateStyles(n)}}))(n);return Mt({mapperProps:e,stateValues:t,controllerUtils:a})}})}}}(),i}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[LoginSocialBar].c3216993.bundle.min.js.map